package weifei.live.simulation.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import org.springframework.stereotype.Repository;


@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sort")
@Repository
public class Sort extends Model<Sort>
{
    @Getter
    public enum Column
    {
        ID("id"),
        Name("name");
        final String name;
        Column(String name) { this.name = name; }
    }

    private Integer id;
    private String name;

    public Sort() {}
    public Sort(int id) { this.id = id; }
    public Sort(String name) { this.name = name; }
}


